<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">

		<title>注册</title>
		<link rel="stylesheet" type="text/css" href="css/MI_register.css" />
	</head>

	<body>
		<div id="container">
			<div id="contain">
				<div id="head">
					<img src="img/zcmi.png" />
				</div>
				<form  action="javascript:" onsubmit="return check()" method="post">
					<select id="local" value="">
						<option>中国台湾</option>
						<option>中国香港</option>
						<option>中国澳门</option>
						<option selected="">中国(+86)</option>
					</select>
					<div class="kh"></div>
					<div>
					<input type="text" id="tellphone" value="" placeholder="请输入手机号"/>
                    <p  class="p1">请输入手机号码</p>
					</div>
					<div id="yz">
						<input type="text" id="pictureyan" value="" placeholder="图片验证码"/>
						<img src=" img/验证码图片.png" />
					<p class="p1">请输入图片验证码</p>
					</div>
					
					<div class="kh"></div>
					<input type="submit" value="" id="lkzc" />
				</form>

				<div id="bz">点击“立即注册”，即表示您同意并愿意遵守小米
					<a href="#">用户协议</a>
					和
					<a href="#">用户协议</a>
				</div>

			</div>

		</div>
		<div id="footer" align="center">
			<div id="ziti">
				<ul id="ul2">
					<li>
						简体
					</li>
					<li>
						|
					</li>
					<li>
						繁体
					</li>
					<li>
						|
					</li>
					<li>
						English
					</li>
					<li>
						|
					</li>
					<li>
						常见问题
					</li>

				</ul>
			</div>
			<br />
			<br />

			<p align="center">小米公司版权所有京ICP备10046444-<img src="img/guohui.png" align="bottom"> 京公网安备11010802020134号-京ICP证110507号
			</p>
		</div>
		<script type="text/javascript"> 
			var isgo=true;
			function check()
			{
				var oTp=document.getElementById("tellphone");
				var oPy=document.getElementById("pictureyan");
				if (oTp.value=="") {
					oTp.parentNode.lastElementChild.style.display = "block";
					isgo=false;
				} else{
					oTp.parentNode.lastElementChild.style.display ="none";
					checked();
				}

				if (oPy.value=="") {
					oPy.parentNode.lastElementChild.style.display ="block";
					isgo=false;
				} else{
					oPy.parentNode.lastElementChild.style.display="none";
				}
				return isgo;
			}
			
			function checked()
			{
				var oTped=document.getElementById("tellphone").value;
                var reg=/^1[3|4|5|8][0-9]\d{4,8}$/;
				if (!reg.test(oTped)) {
				
					alert('手机号码输入不合法');
				} 
			}
			
</script>
         <a href="Remote control.html">产品</a>
	</body>

</html>